import { createContext, useState } from "react";

export const MsgContent = createContext()
export const MsgProvider = ({children}) =>{
    const [message,setMessage] = useState('provider 消息')

    return (
        <MsgContent.Provider value={{message,setMessage}}>
            {children}
        </MsgContent.Provider>
    )
}